package com.powernode.spring6.bean;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class Human {
    private List<String> names;
    private Set<String> addresses;
    private Map<String, Integer> phones;
    private Properties properties;//key,value只能是字符串

    public void setNames(List<String> names) {
        this.names = names;
    }

    public void setAddresses(Set<String> addresses) {
        this.addresses = addresses;
    }

    public void setPhones(Map<String, Integer> phones) {
        this.phones = phones;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    @Override
    public String toString() {
        return "Human{" +
                "names=" + names +
                ", addresses=" + addresses +
                ", phones=" + phones +
                ", properties=" + properties +
                '}';
    }
}
